<?php


namespace app\services\exam;


use app\dao\exam\ExamStatusDao;
use app\exceptions\AuthException;
use app\services\BaseService;


class ExamStatusService extends BaseService
{
    public function __construct(ExamStatusDao $dao)
    {
        $this->dao = $dao;
    }
    //-------------------------------------api-----------------------------------------
    /*
     * 保存学生考试状态
     */
    public function createInformation(array $where){
        $data = $this->dao->createInformation($where);
        if (!$data){
            throw new AuthException('保存错误');
        }
        return '保存成功';
    }
}